package com.imooc.bilibili.domain.exception;

import lombok.Data;

/**
 * ProjectName imooc-bilibili
 * 条件异常
 * @author xieyucan
 * <br>CreateDate 2022/10/21 17:46
 */
@Data
public class ConditionException extends RuntimeException{


    private static final long serialVersionUID = 1;

    private String code;

    public ConditionException(String code,String name) {
        super(name);
        this.code = code;
    }

    public ConditionException(String name) {
        super(name);
        this.code = "500";
    }
}
